<html>
<head>
	<title>浙江车联网络</title>
	<meta charset="utf-8">
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap-datepicker/1.7.0-RC2/css/bootstrap-datepicker.css">
	<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
	<link rel="stylesheet" href="/css/style-admin.css">

</head>
<body>
@section('sidebar')
	<nav class="navbar navbar-default" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="/">浙江车联网络</a>
			</div>
			<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
				<ul class="nav navbar-nav navbar-right">
					@if(!Auth::user())
						<li><a href="/auth/login">登录</a></li>
						<!-- <li><a href="/auth/register">注册</a></li> -->
					@else
						<li><a href="/admin">后台首页 </a></li>
						<li><a href="/admin/infos">常用信息 </a></li>
						<li><a href="/admin/joins">加入我们 </a></li>
						<li><a href="/admin/activitys">官方活动 </a></li>
						<li>
							<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> {{ Auth::user()->name }}
								<span class=" fa fa-angle-down"></span>
							</a>
							<ul class="dropdown-menu dropdown-usermenu pull-right">
								<li><a href="/auth/password">修改密码 </a></li>
								<li><a href="/auth/logout">退出登录</a></li>
							</ul>
						</li>
					@endif
				</ul>
			</div><!-- /.navbar-collapse -->
		</div><!-- /.container-fluid -->
	</nav>
@show

<div class="container">
	@yield('content')
</div>
</body>
<script>
	$(function () {
		$('.nav li a').each(function () {
			if (window.location.href == $(this)[0].href){
				
				$(this).parent().addClass('active');
			}
		})
	});
</script>
</html>